package com.alison.module.author.mapper;

import com.alison.module.author.domain.param.AuthorParam;
import com.alison.module.author.entity.Author;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.Set;


//@Mapper // 使用 @Mapper指定单个文件注入到spring容器中,或者 @MapperScan(basePackages="xxx") 指定一对mapper文件注入到spring容器中,支持通配符 **
public interface AuthorMapper {

    List<Author> selectAll(AuthorParam authorParam);

    List<Author> selectAllInIdsArr(String[] ids);// @param("array)默认

    List<Author> selectAllInIdsSet(@Param("set") Set ids);
    List<Author> selectAllInIdsMap(Map idsMap);

    List<Author> selectAllInIdsList(List ids);//@param("list") 默认

    int deleteByPrimaryKey(Integer id);

    int insert(Author record);

    int insertSelective(Author record);

//    @Select("select * from author")
//    List<Author> selectAll();

    Author selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Author record);

    int updateByPrimaryKey(Author record);
}